/*
* Poppy Game Engine - https://pgetemplate.googlecode.com/svn/
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2008 Poppy
*/

#pragma once

#include "SystemDefines.h"

#ifdef WIN32

#define PGE_GET_TICK_RESOLUTION(secondticks) QueryPerformanceFrequency((LARGE_INTEGER*) &secondticks)

#define PGE_GET_CURRENT_TICK(currenttick) QueryPerformanceCounter((LARGE_INTEGER*) &(currenttick))

#endif

#ifdef PSP

#include <psprtc.h>

#define PGE_GET_TICK_RESOLUTION(secondticks) (secondticks=sceRtcGetTickResolution())

#define PGE_GET_CURRENT_TICK(currenttick) (sceRtcGetCurrentTick(&currenttick))

#endif
